package com.group12.liuxinpeng.user.service;

import com.group12.liuxinpeng.login.entity.MenuLevelEntity;
import com.group12.liuxinpeng.mybatis.entity.PtUserEntity;
import com.group12.liuxinpeng.mybatis.flexigrid.PadingRstType;
import com.group12.liuxinpeng.mybatis.flexigrid.PagingBean;
import com.group12.liuxinpeng.mybatis.ztree.ZtreeEntity;
import com.group12.liuxinpeng.user.entity.UserSearchEntity;

import java.util.List;

public interface UserService {
    PtUserEntity queryUserInfoByUserName(String username);

    List<MenuLevelEntity> queryMenuInfoByLang(String lang);

    PadingRstType<PtUserEntity> getUserInfoListByPage(UserSearchEntity search, PagingBean paging);

    void deleteUserById(String userUuid);

    //获取角色列表
    List<ZtreeEntity> getRoleZtreeListByUserId(String userUuid);

    //通过用户Uuid查询对应角色
    List<ZtreeEntity> getRoleZtreeListByUserId1(String userUuid);

    //插入用户Uuid和对应的角色id
    void allocateRoleByUser(String userUuid, String roleArray);
}

